import React from 'react'
import {useState,useEffect} from "react"
import {useWindowchange} from "../hooks"
import {useClinet} from "../clienthooks"
function App() {
  let [width,height] = useWindowchange()
   let [x,y] = useClinet()
 
  return (
    <div>
        <h1>浏览器窗口大小为{width}*{height}</h1>
        <h1>鼠标的位浏览器左侧{x}距离上侧{y}</h1>
    </div>
  )
}

export default App